/*jadclipse*/// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) radix(10) lradix(10) 
// Source File Name:   InOutSumItemVO.java

package nc.vo.ic.ic644;

import java.util.ArrayList;

import nc.vo.ic.pub.bill.SwitchObject;
import nc.vo.ml.NCLangRes4VoTransl;
import nc.vo.pub.CircularlyAccessibleValueObject;
import nc.vo.pub.NullFieldException;
import nc.vo.pub.ValidationException;
import nc.vo.pub.lang.UFDate;
import nc.vo.pub.lang.UFDouble;
import nc.vo.scm.ic.bill.FreeItemDeal;
import nc.vo.scm.ic.bill.FreeVO;

// Referenced classes of package nc.vo.ic.ic644:
//            FieldSumVO

public class InOutSumItemVO extends CircularlyAccessibleValueObject implements
		FreeItemDeal {

	public InOutSumItemVO() {
		m_voaFieldSum = null;
		m_isFreeItemMgt = new Integer(1);
	}

	public InOutSumItemVO(String newCinoutsumbid) {
		m_voaFieldSum = null;
		m_isFreeItemMgt = new Integer(1);
		m_cinoutsumbid = newCinoutsumbid;
	}

	public Object clone() {
		Object o = null;
		try {
			o = super.clone();
		} catch (Exception e) {
		}
		InOutSumItemVO vo = (InOutSumItemVO) o;
		return vo;
	}

	public String getEntityName() {
		return "RcvDlvOnhandB";
	}

	public String getPrimaryKey() {
		return m_cinoutsumbid;
	}

	public void setPrimaryKey(String newCinoutsumbid) {
		m_cinoutsumbid = newCinoutsumbid;
	}

	public String getCdptcode() {
		return m_cdptcode;
	}

	public String getCdptname() {
		return m_cdptname;
	}

	public String getBusicode() {
		return m_busicode;
	}

	public String getBusiname() {
		return m_businame;
	}

	public UFDate getDdate() {
		return m_ddate;
	}

	public String getCcustomercode() {
		return m_ccustomercode;
	}

	public String getCcustomername() {
		return m_ccustomername;
	}

	public String getCprovidercode() {
		return m_cprovidercode;
	}

	public String getCprovidername() {
		return m_cprovidername;
	}

	public String getCdispatchercode() {
		return m_cdispatchercode;
	}

	public String getCdispatchername() {
		return m_cdispatchername;
	}

	public String getVuserdef1h() {
		return m_vuserdef1h;
	}

	public String getVuserdef2h() {
		return m_vuserdef2h;
	}

	public String getVuserdef3h() {
		return m_vuserdef3h;
	}

	public String getVuserdef4h() {
		return m_vuserdef4h;
	}

	public String getVuserdef5h() {
		return m_vuserdef5h;
	}

	public String getVuserdef6h() {
		return m_vuserdef6h;
	}

	public String getInvclassname() {
		return m_invclassname;
	}

	public String getInvclasscode() {
		return m_invclasscode;
	}

	public String getCinventoryid() {
		return m_cinventoryid;
	}

	public String getCinventorycode() {
		return m_cinventorycode;
	}

	public String getInvname() {
		return m_invname;
	}

	public String getInvtype() {
		return m_invtype;
	}

	public String getInvspec() {
		return m_invspec;
	}

	public String getMeasdocname() {
		return m_measdocname;
	}

	public String getCastunitid() {
		return m_castunitid;
	}

	public String getCastunitname() {
		return m_castunitname;
	}

	public UFDouble getHsl() {
		return m_hsl;
	}

	public String getVbatchcode() {
		return m_vbatchcode;
	}

	public String getCprojectcode() {
		return m_cprojectcode;
	}

	public String getCprojectname() {
		return m_cprojectname;
	}

	public UFDouble getNprice() {
		return m_nprice;
	}

	public UFDouble getNplannedprice() {
		return m_nplannedprice;
	}

	public UFDouble getNtermbeginnum() {
		return m_ntermbeginnum;
	}

	public UFDouble getNtermbeginastnum() {
		return m_ntermbeginastnum;
	}

	public UFDouble getNtermbeginmny() {
		return m_ntermbeginmny;
	}

	public UFDouble getNterminnum() {
		return m_nterminnum;
	}

	public UFDouble getNterminastnum() {
		return m_nterminastnum;
	}

	public UFDouble getNterminmny() {
		return m_nterminmny;
	}

	public UFDouble getNtermoutnum() {
		return m_ntermoutnum;
	}

	public UFDouble getNtermoutastnum() {
		return m_ntermoutastnum;
	}

	public UFDouble getNtermoutmny() {
		return m_ntermoutmny;
	}

	public UFDouble getNtermonhandnum() {
		return m_ntermonhandnum;
	}

	public UFDouble getNtermonhandastnum() {
		return m_ntermonhandastnum;
	}

	public UFDouble getNtermonhandmny() {
		return m_ntermonhandmny;
	}

	public String getVuserdef1() {
		return m_vuserdef1;
	}

	public String getVuserdef2() {
		return m_vuserdef2;
	}

	public String getVuserdef3() {
		return m_vuserdef3;
	}

	public String getVuserdef4() {
		return m_vuserdef4;
	}

	public String getVuserdef5() {
		return m_vuserdef5;
	}

	public String getVuserdef6() {
		return m_vuserdef6;
	}

	public void setCdptcode(String newCdptcode) {
		m_cdptcode = newCdptcode;
	}

	public void setCdptname(String newCdptname) {
		m_cdptname = newCdptname;
	}

	public void setBusicode(String newBusicode) {
		m_busicode = newBusicode;
	}

	public void setBusiname(String newBusiname) {
		m_businame = newBusiname;
	}

	public void setDdate(UFDate newDdate) {
		m_ddate = newDdate;
	}

	public void setCcustomercode(String newCcustomercode) {
		m_ccustomercode = newCcustomercode;
	}

	public void setCcustomername(String newCcustomername) {
		m_ccustomername = newCcustomername;
	}

	public void setCprovidercode(String newCprovidercode) {
		m_cprovidercode = newCprovidercode;
	}

	public void setCprovidername(String newCprovidername) {
		m_cprovidername = newCprovidername;
	}

	public void setCdispatchercode(String newCdispatchercode) {
		m_cdispatchercode = newCdispatchercode;
	}

	public void setCdispatchername(String newCdispatchername) {
		m_cdispatchername = newCdispatchername;
	}

	public void setVuserdef1h(String newVuserdef1h) {
		m_vuserdef1h = newVuserdef1h;
	}

	public void setVuserdef2h(String newVuserdef2h) {
		m_vuserdef2h = newVuserdef2h;
	}

	public void setVuserdef3h(String newVuserdef3h) {
		m_vuserdef3h = newVuserdef3h;
	}

	public void setVuserdef4h(String newVuserdef4h) {
		m_vuserdef4h = newVuserdef4h;
	}

	public void setVuserdef5h(String newVuserdef5h) {
		m_vuserdef5h = newVuserdef5h;
	}

	public void setVuserdef6h(String newVuserdef6h) {
		m_vuserdef6h = newVuserdef6h;
	}

	public void setInvclassname(String newInvclassname) {
		m_invclassname = newInvclassname;
	}

	public void setInvclasscode(String newInvclasscode) {
		m_invclasscode = newInvclasscode;
	}

	public void setCinventoryid(String newCinventoryid) {
		m_cinventoryid = newCinventoryid;
	}

	public void setCinventorycode(String newCinventorycode) {
		m_cinventorycode = newCinventorycode;
	}

	public void setInvname(String newInvname) {
		m_invname = newInvname;
	}

	public void setInvtype(String newInvtype) {
		m_invtype = newInvtype;
	}

	public void setInvspec(String newInvspec) {
		m_invspec = newInvspec;
	}

	public void setMeasdocname(String newMeasdocname) {
		m_measdocname = newMeasdocname;
	}

	public void setCastunitid(String newCastunitid) {
		m_castunitid = newCastunitid;
	}

	public void setCastunitname(String newCastunitname) {
		m_castunitname = newCastunitname;
	}

	public void setHsl(UFDouble newHsl) {
		m_hsl = newHsl;
	}

	public void setVbatchcode(String newVbatchcode) {
		m_vbatchcode = newVbatchcode;
	}

	public void setCprojectcode(String newCprojectcode) {
		m_cprojectcode = newCprojectcode;
	}

	public void setCprojectname(String newCprojectname) {
		m_cprojectname = newCprojectname;
	}

	public void setNprice(UFDouble newNprice) {
		m_nprice = newNprice;
	}

	public void setNplannedprice(UFDouble newNplannedprice) {
		m_nplannedprice = newNplannedprice;
	}

	public void setNtermbeginnum(UFDouble newNtermbeginnum) {
		m_ntermbeginnum = newNtermbeginnum;
	}

	public void setNtermbeginastnum(UFDouble newNtermbeginastnum) {
		m_ntermbeginastnum = newNtermbeginastnum;
	}

	public void setNtermbeginmny(UFDouble newNtermbeginmny) {
		m_ntermbeginmny = newNtermbeginmny;
	}

	public void setNterminnum(UFDouble newNterminnum) {
		m_nterminnum = newNterminnum;
	}

	public void setNterminastnum(UFDouble newNterminastnum) {
		m_nterminastnum = newNterminastnum;
	}

	public void setNterminmny(UFDouble newNterminmny) {
		m_nterminmny = newNterminmny;
	}

	public void setNtermoutnum(UFDouble newNtermoutnum) {
		m_ntermoutnum = newNtermoutnum;
	}

	public void setNtermoutastnum(UFDouble newNtermoutastnum) {
		m_ntermoutastnum = newNtermoutastnum;
	}

	public void setNtermoutmny(UFDouble newNtermoutmny) {
		m_ntermoutmny = newNtermoutmny;
	}

	public void setNtermonhandnum(UFDouble newNtermonhandnum) {
		m_ntermonhandnum = newNtermonhandnum;
	}

	public void setNtermonhandastnum(UFDouble newNtermonhandastnum) {
		m_ntermonhandastnum = newNtermonhandastnum;
	}

	public void setNtermonhandmny(UFDouble newNtermonhandmny) {
		m_ntermonhandmny = newNtermonhandmny;
	}

	public void setVuserdef1(String newVuserdef1) {
		m_vuserdef1 = newVuserdef1;
	}

	public void setVuserdef2(String newVuserdef2) {
		m_vuserdef2 = newVuserdef2;
	}

	public void setVuserdef3(String newVuserdef3) {
		m_vuserdef3 = newVuserdef3;
	}

	public void setVuserdef4(String newVuserdef4) {
		m_vuserdef4 = newVuserdef4;
	}

	public void setVuserdef5(String newVuserdef5) {
		m_vuserdef5 = newVuserdef5;
	}

	public void setVuserdef6(String newVuserdef6) {
		m_vuserdef6 = newVuserdef6;
	}

	public void validate() throws ValidationException {
		ArrayList errFields = new ArrayList();
		if (m_cinoutsumbid == null)
			errFields.add(new String("m_cinoutsumbid"));
		if (m_cinoutsumid == null)
			errFields.add(new String("m_cinoutsumid"));
		if (m_cfieldid == null)
			errFields.add(new String("m_cfieldid"));
		if (m_cfieldname == null)
			errFields.add(new String("m_cfieldname"));
		if (m_cdptcode == null)
			errFields.add(new String("m_cdptcode"));
		if (m_cdptname == null)
			errFields.add(new String("m_cdptname"));
		if (m_busicode == null)
			errFields.add(new String("m_busicode"));
		if (m_businame == null)
			errFields.add(new String("m_businame"));
		if (m_ddate == null)
			errFields.add(new String("m_ddate"));
		if (m_ccustomercode == null)
			errFields.add(new String("m_ccustomercode"));
		if (m_ccustomername == null)
			errFields.add(new String("m_ccustomername"));
		if (m_cprovidercode == null)
			errFields.add(new String("m_cprovidercode"));
		if (m_cprovidername == null)
			errFields.add(new String("m_cprovidername"));
		if (m_cdispatchercode == null)
			errFields.add(new String("m_cdispatchercode"));
		if (m_cdispatchername == null)
			errFields.add(new String("m_cdispatchername"));
		if (m_vuserdef1h == null)
			errFields.add(new String("m_vuserdef1h"));
		if (m_vuserdef2h == null)
			errFields.add(new String("m_vuserdef2h"));
		if (m_vuserdef3h == null)
			errFields.add(new String("m_vuserdef3h"));
		if (m_vuserdef4h == null)
			errFields.add(new String("m_vuserdef4h"));
		if (m_vuserdef5h == null)
			errFields.add(new String("m_vuserdef5h"));
		if (m_vuserdef6h == null)
			errFields.add(new String("m_vuserdef6h"));
		if (m_invclassname == null)
			errFields.add(new String("m_invclassname"));
		if (m_invclasscode == null)
			errFields.add(new String("m_invclasscode"));
		if (m_cinventoryid == null)
			errFields.add(new String("m_cinventoryid"));
		if (m_cinventorycode == null)
			errFields.add(new String("m_cinventorycode"));
		if (m_invname == null)
			errFields.add(new String("m_invname"));
		if (m_invtype == null)
			errFields.add(new String("m_invtype"));
		if (m_invspec == null)
			errFields.add(new String("m_invspec"));
		if (m_measdocname == null)
			errFields.add(new String("m_measdocname"));
		if (m_castunitid == null)
			errFields.add(new String("m_castunitid"));
		if (m_castunitname == null)
			errFields.add(new String("m_castunitname"));
		if (m_hsl == null)
			errFields.add(new String("m_hsl"));
		if (m_vbatchcode == null)
			errFields.add(new String("m_vbatchcode"));
		if (m_cprojectcode == null)
			errFields.add(new String("m_cprojectcode"));
		if (m_cprojectname == null)
			errFields.add(new String("m_cprojectname"));
		if (m_nprice == null)
			errFields.add(new String("m_nprice"));
		if (m_nplannedprice == null)
			errFields.add(new String("m_nplannedprice"));
		if (m_ntermbeginnum == null)
			errFields.add(new String("m_ntermbeginnum"));
		if (m_ntermbeginastnum == null)
			errFields.add(new String("m_ntermbeginastnum"));
		if (m_ntermbeginmny == null)
			errFields.add(new String("m_ntermbeginmny"));
		if (m_nterminnum == null)
			errFields.add(new String("m_nterminnum"));
		if (m_nterminastnum == null)
			errFields.add(new String("m_nterminastnum"));
		if (m_nterminmny == null)
			errFields.add(new String("m_nterminmny"));
		if (m_ntermoutnum == null)
			errFields.add(new String("m_ntermoutnum"));
		if (m_ntermoutastnum == null)
			errFields.add(new String("m_ntermoutastnum"));
		if (m_ntermoutmny == null)
			errFields.add(new String("m_ntermoutmny"));
		if (m_ntermonhandnum == null)
			errFields.add(new String("m_ntermonhandnum"));
		if (m_ntermonhandastnum == null)
			errFields.add(new String("m_ntermonhandastnum"));
		if (m_ntermonhandmny == null)
			errFields.add(new String("m_ntermonhandmny"));
		if (m_vuserdef1 == null)
			errFields.add(new String("m_vuserdef1"));
		if (m_vuserdef2 == null)
			errFields.add(new String("m_vuserdef2"));
		if (m_vuserdef3 == null)
			errFields.add(new String("m_vuserdef3"));
		if (m_vuserdef4 == null)
			errFields.add(new String("m_vuserdef4"));
		if (m_vuserdef5 == null)
			errFields.add(new String("m_vuserdef5"));
		if (m_vuserdef6 == null)
			errFields.add(new String("m_vuserdef6"));
		StringBuffer message = new StringBuffer();
		message.append(NCLangRes4VoTransl.getNCLangRes().getStrByID(
				"4008report", "UPP4008report-000007"));
		if (errFields.size() > 0) {
			String temp[] = (String[]) (String[]) errFields
					.toArray(new String[0]);
			message.append(temp[0]);
			for (int i = 1; i < temp.length; i++) {
				message.append(NCLangRes4VoTransl.getNCLangRes().getStrByID(
						"SCMCOMMON", "UPPSCMCommon-000000"));
				message.append(temp[i]);
			}

			throw new NullFieldException(message.toString());
		} else {
			return;
		}
	}

	public String[] getAttributeNames() {
		return (new String[] { "pk_invcl", "pk_invbasdoc", "fixedflag",
				"cinoutsumid", "cfieldid", "cfieldname", "cdptcode",
				"cdptname", "busicode", "businame", "ddate", "ccustomercode",
				"ccustomername", "cprovidercode", "cprovidername",
				"cdispatchercode", "cdispatchername", "vuserdef1h",
				"vuserdef2h", "vuserdef3h", "vuserdef4h", "vuserdef5h",
				"vuserdef6h", "invclassname", "invclasscode", "cinventoryid",
				"cinventorycode", "invname", "invtype", "invspec",
				"measdocname", "castunitid", "castunitname", "hsl",
				"vbatchcode", "cprojectcode", "cprojectname", "nprice",
				"nplannedprice", "ntermbeginnum", "ntermbeginastnum",
				"ntermbeginmny", "nterminnum", "nterminastnum", "nterminmny",
				"ntermoutnum", "ntermoutastnum", "ntermoutmny",
				"ntermonhandnum", "ntermonhandastnum", "ntermonhandmny",
				"vuserdef1", "vuserdef2", "vuserdef3", "vuserdef4",
				"vuserdef5", "vuserdef6", "cicorpid", "cocorpid", "pk_corp",
				"cicorpname", "cocorpname", "cicalbodyid", "cocalbodyid",
				"cicalbodyname", "cocalbodyname", "ciwhid", "cowhid",
				"ciwhname", "cowhname","pk_cumandoc","showcust" });
	}

	public Object getAttributeValue(String attributeName) {
		if (attributeName.equals("cinoutsumbid"))
			return m_cinoutsumbid;
		if (attributeName.equals("pk_cumandoc"))
			return pk_cumandoc;
		if (attributeName.equals("showcust"))
			return showcust;
		if (attributeName.equals("cinoutsumid"))
			return m_cinoutsumid;
		if (attributeName.equals("fixedflag"))
			return m_fixedflag;
		if (attributeName.equals("pk_invbasdoc"))
			return m_pk_invbasdoc;
		if (attributeName.equals("pk_invcl"))
			return m_pk_invcl;
		if (attributeName.equals("cfieldid"))
			return m_cfieldid;
		if (attributeName.equals("cwhid"))
			return m_cwhid;
		if (attributeName.equals("cfieldname"))
			return m_cfieldname;
		if (attributeName.equals("cdptcode"))
			return m_cdptcode;
		if (attributeName.equals("cdptname"))
			return m_cdptname;
		if (attributeName.equals("busicode"))
			return m_busicode;
		if (attributeName.equals("businame"))
			return m_businame;
		if (attributeName.equals("ddate"))
			return m_ddate;
		if (attributeName.equals("ccustomercode"))
			return m_ccustomercode;
		if (attributeName.equals("ccustomername"))
			return m_ccustomername;
		if (attributeName.equals("cprovidercode"))
			return m_cprovidercode;
		if (attributeName.equals("cprovidername"))
			return m_cprovidername;
		if (attributeName.equals("cdispatchercode"))
			return m_cdispatchercode;
		if (attributeName.equals("cdispatcherid"))
			return m_cdispatcherid;
		if (attributeName.equals("cdispatchername"))
			return m_cdispatchername;
		if (attributeName.equals("vuserdef1h"))
			return m_vuserdef1h;
		if (attributeName.equals("vuserdef2h"))
			return m_vuserdef2h;
		if (attributeName.equals("vuserdef3h"))
			return m_vuserdef3h;
		if (attributeName.equals("vuserdef4h"))
			return m_vuserdef4h;
		if (attributeName.equals("vuserdef5h"))
			return m_vuserdef5h;
		if (attributeName.equals("vuserdef6h"))
			return m_vuserdef6h;
		if (attributeName.equals("invclassname"))
			return m_invclassname;
		if (attributeName.equals("invclasscode"))
			return m_invclasscode;
		if (attributeName.equals("cinventoryid")
				|| attributeName.equals("b.cinventoryid"))
			return m_cinventoryid;
		if (attributeName.equals("cinventorycode"))
			return m_cinventorycode;
		if (attributeName.equals("invname"))
			return m_invname;
		if (attributeName.equals("invtype"))
			return m_invtype;
		if (attributeName.equals("invspec"))
			return m_invspec;
		if (attributeName.equals("measdocname"))
			return m_measdocname;
		if (attributeName.equals("castunitid"))
			return m_castunitid;
		if (attributeName.equals("castunitname"))
			return m_castunitname;
		if (attributeName.equals("hsl"))
			return m_hsl;
		if (attributeName.equals("vbatchcode"))
			return m_vbatchcode;
		if (attributeName.equals("cprojectcode"))
			return m_cprojectcode;
		if (attributeName.equals("cprojectname"))
			return m_cprojectname;
		if (attributeName.equals("nprice"))
			return m_nprice;
		if (attributeName.equals("nplannedprice"))
			return m_nplannedprice;
		if (attributeName.equals("ntermbeginnum"))
			return m_ntermbeginnum;
		if (attributeName.equals("ntermbeginastnum"))
			return m_ntermbeginastnum;
		if (attributeName.equals("ntermbeginmny"))
			return m_ntermbeginmny;
		if (attributeName.equals("nterminnum"))
			return m_nterminnum;
		if (attributeName.equals("nterminastnum"))
			return m_nterminastnum;
		if (attributeName.equals("nterminmny"))
			return m_nterminmny;
		if (attributeName.equals("ntermnum"))
			return m_ntermnum;
		if (attributeName.equals("ntermgrossnum"))
			return m_ntermgrossnum;
		if (attributeName.equals("ntermastnum"))
			return m_ntermastnum;
		if (attributeName.equals("ntermmny"))
			return m_ntermmny;
		if (attributeName.equals("ntermoutnum"))
			return m_ntermoutnum;
		if (attributeName.equals("ntermoutastnum"))
			return m_ntermoutastnum;
		if (attributeName.equals("ntermoutmny"))
			return m_ntermoutmny;
		if (attributeName.equals("ntermonhandnum"))
			return m_ntermonhandnum;
		if (attributeName.equals("ntermonhandastnum"))
			return m_ntermonhandastnum;
		if (attributeName.equals("ntermonhandmny"))
			return m_ntermonhandmny;
		if (attributeName.equals("vuserdef1"))
			return m_vuserdef1;
		if (attributeName.equals("vuserdef2"))
			return m_vuserdef2;
		if (attributeName.equals("vuserdef3"))
			return m_vuserdef3;
		if (attributeName.equals("vuserdef4"))
			return m_vuserdef4;
		if (attributeName.equals("vuserdef5"))
			return m_vuserdef5;
		if (attributeName.equals("vuserdef6"))
			return m_vuserdef6;
		if (attributeName.equals("cicorpid"))
			return cicorpid;
		if (attributeName.equals("cocorpid"))
			return cocorpid;
		if (attributeName.equals("pk_corp"))
			return pk_corp;
		if (attributeName.equals("cicalbodyid"))
			return cicalbodyid;
		if (attributeName.equals("cocalbodyid"))
			return cocalbodyid;
		if (attributeName.equals("ciwhid"))
			return ciwhid;
		if (attributeName.equals("cowhid"))
			return cowhid;
		if (attributeName.equals("unitcode"))
			return unitcode;
		if (attributeName.equals("unitname"))
			return unitname;
		if (attributeName.equals("cicorpname"))
			return cicorpname;
		if (attributeName.equals("cocorpname"))
			return cocorpname;
		if (attributeName.equals("cicalbodyname"))
			return cicalbodyname;
		if (attributeName.equals("cocalbodyname"))
			return cocalbodyname;
		if (attributeName.equals("ciwhname"))
			return ciwhname;
		if (attributeName.equals("cowhname"))
			return cowhname;
		if (m_freevo != null && attributeName.startsWith("vfree"))
			return m_freevo.getAttributeValue(attributeName);
		String sField = null;
		int iNum = -1;
		ArrayList alRet = parseRdTypeField(attributeName);
		if (alRet != null && alRet.size() >= 2)
			try {
				iNum = Integer.valueOf(alRet.get(0).toString()).intValue();
				sField = alRet.get(1).toString();
			} catch (Exception e) {
			}
		if (iNum >= 0 && sField != null && sField.trim().length() > 0
				&& m_voaFieldSum != null && iNum < m_voaFieldSum.length
				&& m_voaFieldSum[iNum] != null)
			return m_voaFieldSum[iNum].getAttributeValue(sField);
		else
			return null;
	}

	public void setAttributeValue(String name, Object value) {
		String sTrimedValue = null;
		if (value != null && (value instanceof String)) {
			sTrimedValue = (String) value;
			if (sTrimedValue.trim().length() == 0)
				sTrimedValue = null;
		}
		try {
			if (name.equals("cinoutsumbid"))
				m_cinoutsumbid = sTrimedValue;
			else if (name.equals("cinoutsumid"))
				m_cinoutsumid = sTrimedValue;
			else if (name.equals("cfieldid"))
				m_cfieldid = sTrimedValue;
			else if (name.equals("cwhid"))
				m_cwhid = sTrimedValue;
			else if (name.equals("fixedflag"))
				m_fixedflag = sTrimedValue;
			else if (name.equals("pk_invbasdoc"))
				m_pk_invbasdoc = sTrimedValue;
			else if (name.equals("pk_invcl"))
				m_pk_invcl = sTrimedValue;
			else if (name.equals("cfieldname"))
				m_cfieldname = sTrimedValue;
			else if (name.equals("cdptcode"))
				m_cdptcode = sTrimedValue;
			else if (name.equals("cdptname"))
				m_cdptname = sTrimedValue;
			else if (name.equals("busicode"))
				m_busicode = sTrimedValue;
			else if (name.equals("businame"))
				m_businame = sTrimedValue;
			else if (name.equals("ddate"))
				m_ddate = SwitchObject.switchObjToUFDate(value);
			else if (name.equals("ccustomercode"))
				m_ccustomercode = sTrimedValue;
			else if (name.equals("ccustomername"))
				m_ccustomername = sTrimedValue;
			else if (name.equals("cprovidercode"))
				m_cprovidercode = sTrimedValue;
			else if (name.equals("cprovidername"))
				m_cprovidername = sTrimedValue;
			else if (name.equals("cdispatcherid"))
				m_cdispatcherid = sTrimedValue;
			else if (name.equals("cdispatchercode"))
				m_cdispatchercode = sTrimedValue;
			else if (name.equals("cdispatchername"))
				m_cdispatchername = sTrimedValue;
			else if (name.equals("vuserdef1h"))
				m_vuserdef1h = sTrimedValue;
			else if (name.equals("vuserdef2h"))
				m_vuserdef2h = sTrimedValue;
			else if (name.equals("vuserdef3h"))
				m_vuserdef3h = sTrimedValue;
			else if (name.equals("vuserdef4h"))
				m_vuserdef4h = sTrimedValue;
			else if (name.equals("vuserdef5h"))
				m_vuserdef5h = sTrimedValue;
			else if (name.equals("vuserdef6h"))
				m_vuserdef6h = sTrimedValue;
			else if (name.equals("invclassname"))
				m_invclassname = sTrimedValue;
			else if (name.equals("invclasscode"))
				m_invclasscode = sTrimedValue;
			else if (name.equals("cinventoryid")
					|| name.equals("b.cinventoryid"))
				m_cinventoryid = sTrimedValue;
			else if (name.equals("cinventorycode"))
				m_cinventorycode = sTrimedValue;
			else if (name.equals("invname"))
				m_invname = sTrimedValue;
			else if (name.equals("unitcode"))
				unitcode = sTrimedValue;
			else if (name.equals("unitname"))
				unitname = sTrimedValue;
			else if (name.equals("invtype"))
				m_invtype = sTrimedValue;
			else if (name.equals("invspec"))
				m_invspec = sTrimedValue;
			else if (name.equals("measdocname"))
				m_measdocname = sTrimedValue;
			else if (name.equals("castunitid"))
				m_castunitid = sTrimedValue;
			else if (name.equals("castunitname"))
				m_castunitname = sTrimedValue;
			else if (name.equals("hsl"))
				m_hsl = SwitchObject.switchObjToUFDouble(value);
			else if (name.equals("vbatchcode"))
				m_vbatchcode = sTrimedValue;
			else if (name.equals("cprojectcode"))
				m_cprojectcode = sTrimedValue;
			else if (name.equals("cprojectname"))
				m_cprojectname = sTrimedValue;
			else if (name.equals("nprice"))
				m_nprice = SwitchObject.switchObjToUFDouble(value);
			else if (name.equals("nplannedprice"))
				m_nplannedprice = SwitchObject.switchObjToUFDouble(value);
			else if (name.equals("ntermbeginnum"))
				m_ntermbeginnum = SwitchObject.switchObjToUFDouble(value);
			else if (name.equals("ntermbeginastnum"))
				m_ntermbeginastnum = SwitchObject.switchObjToUFDouble(value);
			else if (name.equals("ntermbeginmny"))
				m_ntermbeginmny = SwitchObject.switchObjToUFDouble(value);
			else if (name.equals("nterminnum"))
				m_nterminnum = SwitchObject.switchObjToUFDouble(value);
			else if (name.equals("nterminastnum"))
				m_nterminastnum = SwitchObject.switchObjToUFDouble(value);
			else if (name.equals("nterminmny"))
				m_nterminmny = SwitchObject.switchObjToUFDouble(value);
			else if (name.equals("ntermnum"))
				m_ntermnum = SwitchObject.switchObjToUFDouble(value);
			else if (name.equals("ntermgrossnum"))
				m_ntermgrossnum = SwitchObject.switchObjToUFDouble(value);
			else if (name.equals("ntermastnum"))
				m_ntermastnum = SwitchObject.switchObjToUFDouble(value);
			else if (name.equals("ntermmny"))
				m_ntermmny = SwitchObject.switchObjToUFDouble(value);
			else if (name.equals("ntermoutnum"))
				m_ntermoutnum = SwitchObject.switchObjToUFDouble(value);
			else if (name.equals("ntermoutastnum"))
				m_ntermoutastnum = SwitchObject.switchObjToUFDouble(value);
			else if (name.equals("ntermoutmny"))
				m_ntermoutmny = SwitchObject.switchObjToUFDouble(value);
			else if (name.equals("ntermonhandnum"))
				m_ntermonhandnum = SwitchObject.switchObjToUFDouble(value);
			else if (name.equals("ntermonhandastnum"))
				m_ntermonhandastnum = SwitchObject.switchObjToUFDouble(value);
			else if (name.equals("ntermonhandmny"))
				m_ntermonhandmny = SwitchObject.switchObjToUFDouble(value);
			else if (name.equals("vuserdef1"))
				m_vuserdef1 = sTrimedValue;
			else if (name.equals("vuserdef2"))
				m_vuserdef2 = sTrimedValue;
			else if (name.equals("vuserdef3"))
				m_vuserdef3 = sTrimedValue;
			else if (name.equals("vuserdef4"))
				m_vuserdef4 = sTrimedValue;
			else if (name.equals("vuserdef5"))
				m_vuserdef5 = sTrimedValue;
			else if (name.equals("vuserdef6"))
				m_vuserdef6 = sTrimedValue;
			else if (name.equals("cicorpid"))
				cicorpid = sTrimedValue;
			else if (name.equals("cocorpid"))
				cocorpid = sTrimedValue;
			else if (name.equals("pk_corp"))
				pk_corp = sTrimedValue;
			else if (name.equals("cicalbodyid"))
				cicalbodyid = sTrimedValue;
			else if (name.equals("cocalbodyid"))
				cocalbodyid = sTrimedValue;
			else if (name.equals("ciwhid"))
				ciwhid = sTrimedValue;
			else if (name.equals("cowhid"))
				cowhid = sTrimedValue;
			else if (name.equals("cicorpname"))
				cicorpname = sTrimedValue;
			else if (name.equals("cocorpname"))
				cocorpname = sTrimedValue;
			else if (name.equals("cicalbodyname"))
				cicalbodyname = sTrimedValue;
			else if (name.equals("cocalbodyname"))
				cocalbodyname = sTrimedValue;
			else if (name.equals("ciwhname"))
				ciwhname = sTrimedValue;
			else if (name.equals("cowhname"))
				cowhname = sTrimedValue;
			else if (name.equals("pk_cumandoc"))
				pk_cumandoc = sTrimedValue;
			else if (name.equals("showcust"))
				showcust = sTrimedValue;
			else if (name.startsWith("vfree")) {
				if (m_freevo != null) {
					m_freevo.setAttributeValue(name, value);
				} else {
					m_freevo = new FreeVO();
					m_freevo.setAttributeValue(name, value);
				}
			} else {
				String sField = null;
				int iNum = -1;
				ArrayList alRet = parseRdTypeField(name);
				if (alRet != null && alRet.size() >= 2)
					try {
						iNum = Integer.valueOf(alRet.get(0).toString())
								.intValue();
						sField = alRet.get(1).toString();
					} catch (Exception e) {
					}
				if (iNum >= 0 && sField != null && sField.trim().length() > 0
						&& m_voaFieldSum != null && iNum < m_voaFieldSum.length)
					m_voaFieldSum[iNum].setAttributeValue(sField.trim(), value);
			}
		} catch (ClassCastException e) {
			throw new ClassCastException(NCLangRes4VoTransl.getNCLangRes()
					.getStrByID("SCMCOMMON", "UPPSCMCommon-000005", null,
							new String[] { name, value.toString() }));
		}
	}

	public String getCdispatcherid() {
		return m_cdispatcherid;
	}

	public FreeVO getFreeItemVO() {
		if (m_freevo != null)
			return (FreeVO) m_freevo.clone();
		else
			return null;
	}

	void newMethod() {
	}

	public ArrayList parseRdTypeField(String sFieldName) {
		if (sFieldName == null || sFieldName.trim().length() == 0)
			return null;
		sFieldName = sFieldName.trim();
		int iStart = 0;
		for (iStart = 0; iStart < sFieldName.length()
				&& (sFieldName.charAt(iStart) < '0' || sFieldName
						.charAt(iStart) > '9'); iStart++)
			;
		String sRetField = sFieldName.substring(0, iStart);
		String sNum = sFieldName.substring(iStart, sFieldName.length());
		Integer iTemp = new Integer(-1);
		try {
			iTemp = new Integer(sNum);
		} catch (Exception e) {
		}
		ArrayList alRet = new ArrayList();
		alRet.add(iTemp);
		alRet.add(sRetField);
		return alRet;
	}

	public void setCdispatcherid(String newCdispatcherid) {
		m_cdispatcherid = newCdispatcherid;
	}

	public void setFreeItemVO(FreeVO newM_freevo) {
		m_isFreeItemMgt = new Integer(0);
		if (newM_freevo != null) {
			m_freevo = (FreeVO) newM_freevo.clone();
			Object oFree = null;
			int i = 0;
			i = 1;
			do {
				if (i > 10)
					break;
				oFree = newM_freevo.getAttributeValue((new StringBuilder())
						.append("vfreeid").append(i).toString());
				if (oFree != null && oFree.toString().trim().length() > 0)
					break;
				i++;
			} while (true);
			if (i <= 10)
				m_isFreeItemMgt = new Integer(1);
		}
	}

	public InOutSumItemVO(int iRdInCount) {
		m_voaFieldSum = null;
		m_isFreeItemMgt = new Integer(1);
		m_voaFieldSum = new FieldSumVO[iRdInCount];
	}

	public String getCfieldid() {
		return m_cfieldid;
	}

	public String getCfieldname() {
		return m_cfieldname;
	}

	public String getCinoutsumbid() {
		return m_cinoutsumbid;
	}

	public String getCinoutsumid() {
		return m_cinoutsumid;
	}

	public int getFieldSize(int iInOutFlag) {
		if (m_voaFieldSum == null)
			return 0;
		else
			return m_voaFieldSum.length;
	}

	public FieldSumVO getFieldType(int iNum) {
		if (m_voaFieldSum != null && iNum >= 0 && iNum < m_voaFieldSum.length)
			return m_voaFieldSum[iNum];
		else
			return null;
	}

	public UFDouble getNtermastnum() {
		return m_ntermastnum;
	}

	public UFDouble getNtermmny() {
		return m_ntermmny;
	}

	public UFDouble getNtermnum() {
		return m_ntermnum;
	}

	public void initDataSize(int iSize) {
		if (iSize > 0)
			m_voaFieldSum = new FieldSumVO[iSize];
		else
			m_voaFieldSum = null;
	}

	public void setCfieldid(String newid) {
		m_cfieldid = newid;
	}

	public void setCfieldname(String newname) {
		m_cfieldname = newname;
	}

	public void setCinoutsumbid(String newCinoutsumbid) {
		m_cinoutsumbid = newCinoutsumbid;
	}

	public void setCinoutsumid(String newCinoutsumid) {
		m_cinoutsumid = newCinoutsumid;
	}

	public void setFieldType(int iNum, FieldSumVO vo) {
		if (m_voaFieldSum != null && iNum >= 0 && iNum < m_voaFieldSum.length)
			m_voaFieldSum[iNum] = vo;
	}

	public void setNtermastnum(UFDouble newM_ntermastnum) {
		m_ntermastnum = newM_ntermastnum;
	}

	public void setNtermmny(UFDouble newM_ntermmny) {
		m_ntermmny = newM_ntermmny;
	}

	public void setNtermnum(UFDouble newM_ntermnum) {
		m_ntermnum = newM_ntermnum;
	}

	public String getCwhid() {
		return m_cwhid;
	}

	public void setCwhid(String newid) {
		m_cwhid = newid;
	}

	public String m_cfieldid;

	public String m_cfieldname;

	public String m_cinoutsumbid;

	public String m_cinoutsumid;

	public UFDouble m_ntermastnum;

	public UFDouble m_ntermmny;

	public UFDouble m_ntermnum;

	public UFDouble m_ntermgrossnum;

	private FieldSumVO m_voaFieldSum[];

	public String m_cdptcode;

	public String m_cdptname;

	public String m_busicode;

	public String m_businame;

	public UFDate m_ddate;

	public String m_ccustomercode;

	public String m_ccustomername;

	public String m_cprovidercode;

	public String m_cprovidername;

	public String m_cdispatchercode;

	public String m_cdispatchername;

	public String m_vuserdef1h;

	public String m_vuserdef2h;

	public String m_vuserdef3h;

	public String m_vuserdef4h;

	public String m_vuserdef5h;

	public String m_vuserdef6h;

	public String m_invclassname;

	public String m_invclasscode;

	public String m_cinventoryid;

	public String m_cinventorycode;

	public String m_invname;

	public String m_invtype;

	public String m_invspec;

	public String m_measdocname;

	public String m_castunitid;

	public String m_castunitname;

	public UFDouble m_hsl;

	public String m_vbatchcode;
	
	public String pk_cumandoc;
	
	public String showcust;

	public String m_cprojectcode;

	public String m_cprojectname;

	public UFDouble m_nprice;

	public UFDouble m_nplannedprice;

	public UFDouble m_ntermbeginnum;

	public UFDouble m_ntermbeginastnum;

	public UFDouble m_ntermbeginmny;

	public UFDouble m_nterminnum;

	public UFDouble m_nterminastnum;

	public UFDouble m_nterminmny;

	public UFDouble m_ntermoutnum;

	public UFDouble m_ntermoutastnum;

	public UFDouble m_ntermoutmny;

	public UFDouble m_ntermonhandnum;

	public UFDouble m_ntermonhandastnum;

	public UFDouble m_ntermonhandmny;

	public String m_vuserdef1;

	public String m_vuserdef2;

	public String m_vuserdef3;

	public String m_vuserdef4;

	public String m_vuserdef5;

	public String m_vuserdef6;

	public String m_cdispatcherid;

	private FreeVO m_freevo;

	public Integer m_isFreeItemMgt;

	public String cicorpid;

	public String cocorpid;

	public String cicorpname;

	public String cocorpname;

	public String cicalbodyid;

	public String cocalbodyid;

	public String cicalbodyname;

	public String cocalbodyname;

	public String ciwhid;

	public String cowhid;

	public String ciwhname;

	public String cowhname;

	public String pk_corp;

	public String unitcode;

	public String unitname;

	public String m_cwhid;

	public String m_fixedflag;

	public String m_pk_invbasdoc;

	public String m_pk_invcl;

	public static String RD_NULL_ID = "#:-)";

	public static String RD_NULL_NAME = NCLangRes4VoTransl.getNCLangRes()
			.getStrByID("4008vo", "UPP4008vo-000075");

	public String getPk_cumandoc() {
		return pk_cumandoc;
	}

	public void setPk_cumandoc(String pk_cumandoc) {
		this.pk_cumandoc = pk_cumandoc;
	}

	public String getShowcust() {
		return showcust;
	}

	public void setShowcust(String showcust) {
		this.showcust = showcust;
	}

}
